package apiservice

import (
	"bilibiliDownload/apiservice/router"
	"fmt"
	"github.com/gin-gonic/gin"
)

func Start() {
	g := gin.Default()
	router.InitRouter(g)
	if e := g.Run("127.0.0.1:8080"); e != nil {
		fmt.Println("api服务启动失败")
		panic(e)
	}
}
